package behavioralPattern.state.example02;

public class Yellow implements LightState{
    @Override
    public void switchToGreen(Context light) {
        System.out.println("黄灯 => 绿灯");
    }

    @Override
    public void switchToYellow(Context light) {
        System.out.println("当前是黄灯，不用变");
    }

    @Override
    public void switchToRed(Context light) {
        System.out.println("黄灯 => 红灯");
    }
}
